package ua.org.oa.ishchenko;

public class Car {
	public String name;
	public String color;
	public int yearProduce;
	final static String DEFAULT_NAME = "defaultName";
	final static String DEFAULT_COLOR = "defaultColor";
	final static  int DEFAULT_YEAR_PRODUCE = 2000;
	
	
	
	public Car() {
		this(DEFAULT_NAME, DEFAULT_COLOR, DEFAULT_YEAR_PRODUCE );
		
	}
	public Car(String name) {
		this(name, DEFAULT_COLOR, DEFAULT_YEAR_PRODUCE);
	}
	public Car(String name, String color) {
		this(name, color, DEFAULT_YEAR_PRODUCE);
	}
	public Car(int yearProduce){
		this(DEFAULT_NAME, DEFAULT_COLOR, yearProduce);
	}
	public Car(String name, String color, int yearProduce) {
		this.name = name;
		this.color = color;
		this.yearProduce = yearProduce;
	}


}



